package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
    * 异常信息
    */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="异常信息")
@Data
@Accessors(chain = true)
@TableName(value = "exception_type")
public class ExceptionType extends PublicPo implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 指示灯颜色(0 黄色,1 红色)
     */
    @TableField(value = "lamp_color")
    @ApiModelProperty(value="指示灯颜色(0 黄色,1 红色)")
    private Integer lampColor;

    /**
     * 异常原因
     */
    @TableField(value = "exception_reason")
    @ApiModelProperty(value="异常原因")
    private String exceptionReason;

    /**
     * 分类
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value="分类")
    private String type;

    /**
     * 分组(common_tree表id)
     */
    @TableField(value = "group_id")
    @ApiModelProperty(value="分组(common_tree表id)")
    private Long groupId;

    /**
     * 联络灯类型(lamp_type表id)
     */
    @TableField(value = "lamp_type",updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value="联络灯类型(lamp_type表id)")
    private Long lampType;

    /**
     * 联络灯类型名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value="联络灯类型名称")
    private String lampTypeName;


    /**
     * 创建人(user表id)
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value="创建人(user表id)",hidden = true)
    private Integer createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间",hidden = true)
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value="更新人",hidden = true)
    private Integer updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="更新时间",hidden = true)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}